package com.Maykk.Demo05;

import java.util.Date;

/**
 * @ClassName Demo01
 * @Description: TODO Date 练习
 * @Author: MaykkSTAR@163.com
 * @DATE: 2023/5/12
 */
public class Demo01 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        Date dateDelDay = new Date(System.currentTimeMillis() - 1000*60*60*24);
        System.out.println(dateDelDay);
        Date date_set = new Date();
        date_set.setTime(System.currentTimeMillis() + 1000*60*60*24);
        System.out.println(date_set);
        System.out.println(date.getTime());
    }
}
